<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ taglib prefix="perm" uri="http://wanhuakeji.com/permission" %>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <script type="text/javascript" src="${path}/html/js/js-jsp/layout-sub.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/dataServices/appSecret.js?v=<%out.print(Math.random());%>"></script>
    <script>
        addBtn = <perm:hasPermission permission="rules:dataServices_appSecret_add"/>;
        delBtn = <perm:hasPermission permission="rules:dataServices_appSecret_del"/>;
        editBtn= <perm:hasPermission permission="rules:dataServices_appSecret_edit"/>;
        resetBtn = <perm:hasPermission permission="rules:dataServices_appSecret_reset"/>;
        viewBtn = <perm:hasPermission permission="rules:dataServices_appSecret_view"/>;
        clearBtn = <perm:hasPermission permission="rules:dataServices_appSecret_clear"/>;
    </script>
</head>
<body style="height:100%; margin: 2px; ">
    <div class="easyui-layout"  fit="true" space="2">
        <div region="north"  style="height:100%;">
            <div class="easyui-layout" fit="true" space="2">
                <div region="north" class="searchToolBar" border="false" style="height:70px">
                    <fieldset>
                        <legend>系统操作</legend>
                            <table class="searchTable">
                                <tr class="searchTableTr" style="width: 100%">
                                    <td>
                                    </td>
                                    <td></td>
                                    <td style="width: 50%">
                                        <div class="searchButton">
                                            <!--秘钥操作菜单-->
                                            <div id="appSecret_Menu"></div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                    </fieldset>
                </div>
                <div region="center" border="false" style="padding: 1px;">
                    <!--秘钥表格列表-->
                    <table id="appSecretDg"></table>
                </div>
            </div>
        </div>
    </div>

    <!--秘钥操作(添加/修改)-->
    <div id="appSecret_dialog" class="easyui-dialog" data-options="closed:true" style="padding:10px;">
        <form id="appSecretForm" name="appSecretForm" method="post">
            <div class="gridFrom">
                <dl>
                    <dd>
                        <input type="hidden" name="id" id="id" value="" />
                        <span class="title">应用KEY：</span>
                        <input class="easyui-textbox" type="text" name="appKey" id="appKey" data-options="required:true" missingMessage="应用Key不能为空"  style="width: 225px">
                    </dd>
                    <dd>
                        <span class="title">应用密钥：</span>
                        <input class="easyui-textbox" type="password" name="secret" id="secret" data-options="required:true" missingMessage="应用密钥不能为空" style="width: 225px">
                    </dd>
                    <dd>
                        <span class="title">限制次数：</span>
                        <input class="easyui-numberspinner" type="text"  name="limit" value="0" data-options="required:true,min:0,max:100000000,required:true" missingMessage="限制次数不能为空" style="width: 225px"> &nbsp;次
                    </dd>
                    <dd>
                        <span class="title">是否启用：</span>
                        <select class="easyui-combobox" name="status" id="status" style="width: 225px" editable="false">
                            <option value="1" selected="selected">是</option>
                            <option value="0">否</option>
                        </select>
                    </dd>
                </dl>
            </div>
        </form>
        <script type="text/javascript" src="${path}/html/js/js-jsp/common-optionBtnArray.js"></script>
    </div>
</body>
</html>
